viewport: don't render a background over the bin window
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 28 Dec 2015 20:21:27 +0000 (12:21 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 29 Dec 2015 21:50:19 +0000 (13:50 -0800)
commit09835b4c3987d67aafe7ae4ded039beb175121c9
treeebc7b5f920ecbdd2a7e867314121e2f6e498038b
parent5daede51f77a6afbfbd636bb7f45a2d1d9c93bf1
viewport: don't render a background over the bin window

GtkViewport currently tries to draw a background over the bin window.
The feature is a bit broken at the moment, as it does not take into
account padding that might have been set on the GtkViewport, but in
general it does not seem very useful, and goes somewhat against the CSS
box model where every widget/gadget is responsible to draw its own
background. For a fix, we could either have the viewport gain a "bin"
gadget, or we could stop drawing the background.

As it isn't clear that there are any users of this feature, stop drawing
the background; a client can achieve the same effect by drawing the
background on the widget inside the viewport itself.
gtk/gtkviewport.c